package com.xhtt.modules.cfg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.modules.cfg.dao.CfgPotRelateMapper;
import com.xhtt.modules.cfg.entity.CfgPotRelate;
import com.xhtt.modules.cfg.model.ValidPotParam;
import com.xhtt.modules.cfg.service.CfgPotRelateService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-02-21
 */
@Service
public class CfgPotRelateServiceImpl extends ServiceImpl<CfgPotRelateMapper, CfgPotRelate> implements CfgPotRelateService {

    @Override
    public List<CfgPotRelate> getValidRelateObject(ValidPotParam param) {
        return baseMapper.getValidRelateObject(param.getPotId(), param.getProductId());
    }
}
